<div class="steps view">
<h2><?php  __('Step "'.$step['Step']['step_index'].'" de la procédure '.$step['Procedure']['proc_reference']);?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Index'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $step['Step']['step_index']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Numéro'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $step['Step']['step_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Action'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $step['Step']['step_action']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Resultat'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $step['Step']['step_result']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Attaché à'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($step['Procedure']['proc_reference'], array('controller'=> 'procedures', 'action'=>'view', $step['Procedure']['proc_index'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Step', true), array('action'=>'edit', $step['Step']['step_index'])); ?> </li>
		<li><?php echo $html->link(__('Supprimer Step', true), array('action'=>'delete', $step['Step']['step_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $step['Step']['step_index'])); ?> </li>
		<li><?php echo $html->link(__('Lister Steps', true), array('action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Step', true), array('action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Procedures', true), array('controller'=> 'procedures', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Procedure', true), array('controller'=> 'procedures', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister liens Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau lien Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related lien Step-Requirements');?></h3>
	<?php if (!empty($step['StepRequirement'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Sra Step'); ?></th>
		<th><?php __('Sra Req'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($step['StepRequirement'] as $stepRequirement):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $stepRequirement['sra_step'];?></td>
			<td><?php echo $stepRequirement['sra_req'];?></td>
			<td class="actions">
				<?php echo $html->link('<img src="/ReqTrack/img/Voir.png" alt="Voir" title="Voir">', array('controller'=> 'step_requirements', 'action'=>'view', $stepRequirement['sra_step, sra_req'])); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Modifier.png" alt="Modifier" title="Modifier">', array('controller'=> 'step_requirements', 'action'=>'edit', $stepRequirement['sra_step, sra_req']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Supprimer.png" alt="Supprimer" title="Supprimer">', array('controller'=> 'step_requirements', 'action'=>'delete', $stepRequirement['sra_step, sra_req']), null, sprintf(__('Are you sure you want to delete # %s?', true), $stepRequirement['sra_step, sra_req']), null, null, false); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Nouveau lien Step-Requirement', true), array('controller'=> 'step_requirements', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
